﻿@{
	Layout = null;
}

<!DOCTYPE html>
<!--[if lt IE 7]>      <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]>         <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]>         <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!-->
<html class="no-js">
<!--<![endif]-->
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta charset="utf-8" />
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width, initial-scale=1.0,maximum-scale=1, user-scalable=no">
	<title>发生错误 - MysoftCM</title>
	@Styles.Render("~/Content/css/main")
	@Scripts.Render("~/bundles/modernizr")
	<!--[if lt IE 9]>
		@Scripts.Render("~/bundles/response")
	<![endif]-->
	@Styles.Render("~/Content/site/css")
</head>
<body class="error">
	<!--[if lt IE 8]>      <nav class="navbar navbar-mysoft"> <![endif]-->
	<!--[if gt IE 8]><!-->
	<nav class="navbar navbar-mysoft navbar-fixed-top">
		<!--<![endif]-->
		<div class="container">
			<div class="navbar-header">
				<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#mysoft-top-nav">
					<span class="sr-only">Toggle navigation</span>
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
				</button>
				<a class="navbar-brand" href="http://www.mysoft.com.cn" target="_blank">明源软件</a>
			</div>
			<div class="collapse navbar-collapse" id="mysoft-top-nav">
				<ul class="nav navbar-nav">
					<li><a href="~/"><i class="fa fa-home fa-lg"></i> MysoftCM首页</a></li>
				</ul>
			</div>
		</div>
	</nav>
	<div class="container error-body">
		<!--[if lt IE 9]>
			<div class="row"><div class="alert alert-danger" role="alert">检测到您所使用的浏览器版本较低，推荐使用Chrome或IE9以上版本</div></div>
		<![endif]-->
		<div class="row">
			<div class="col-xs-12 col-sm-4 col-md-4">
				@{
					if ((int)this.Model.ExceptionType == 99)
					{
						<img src="~/Content/images/error/miss.gif" class="img-responsive center-block" />
					}
					else
					{
						<img src="~/Content/images/error/error.gif" class="img-responsive center-block" />
					}
				}
			</div>
			<div class="col-xs-12 col-sm-8 col-md-8">
				<div class="error-msg">
					@this.Model.Message
				</div>
				<div class="error-detail">
					@{
						if (this.Model.Exception != null)
						{
							<div class="panel panel-default">
								<div class="panel-heading" role="tab" id="headingDetail">
									<h4 class="panel-title">
										<a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion" href="#detail" aria-expanded="false" aria-controls="detail">
											错误详情
										</a>
										<a href="/" class="pull-right">首页</a>
										<a href="javascript:history.go(-1)" class="pull-right">返回前页</a>
									</h4>
								</div>
								<div id="detail" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingDetail">
									<div class="panel-body">
										@Html.Raw(this.Model.Exception.ToString().Replace("\r\n", "<br />"))
									</div>
								</div>
							</div>
						}
						else
						{
							<div class="panel panel-default">
								<div class="panel-heading" role="tab">
									<h4 class="panel-title">
										<a href="javascript:history.go(-1)">返回前页</a>
										<a href="/">首页</a>
									</h4>
								</div>
							</div>
						}
					}
				</div>
			</div>
		</div>
	</div>
</body>
</html>
@Scripts.Render("~/bundles/jquery")
@Scripts.Render("~/bundles/main")
